<template>
<Modal v-model="modalEdit" fullscreen @on-ok="handleModalEditOK" 
@on-cancel="handleModalEditCancel"  ok-text="提交">
<template #header>
		<Icon custom="iconfont icon-Word"/>&nbsp;事先告知书送达回证&nbsp;
</template>
<div><Row justify="center"><Col span="16">
	<Card title="送达回证信息" icon="ios-bookmark">
		<template #extra>
			{{baseform.party_name}}&nbsp;涉嫌&nbsp;{{baseform.cause_name}}
		</template>
		<Row>
		    <Col span="10"><Space>
				<span>送达地点：</span>
				<Input v-model="baseform.rec_address" placeholder="输入收件地址" style="width: 320px;"/>
			</Space></Col>
			<Col span="14"><Space>
				<span>受送达人：</span>
				<Input v-model="baseform.rec_person" placeholder="输入收件人（代收人）"/>
			</Space></Col>
		</Row><br>
	</Card>
</Col></Row></div>
</Modal>
</template>

<script>
import {dateUtils,appendDoc} from '@/libs/tools.js'
import config from '@/config'
export default{
	data(){
		return {
			modalEdit:true,
			baseform:{}		
		}
	},
	components: {
    },
	methods:{
		handleModalEditCancel(){
			this.$router.go(-1)
		},
		handleModalEditOK(){
			let data={...this.baseform}
			data.docs=appendDoc(data.docs,"doc211")
			data.undertaker_name=this.$store.state.user.userInfo.uid
			this.$axios.post('mainCase1CreateDoc211.action',data).then(res=>{
				window.open(config.baseUrl+res.data,'_blank')
			})
			this.$router.go(-1)
		},
			
	},
	mounted(){
		this.$axios.post('mainCase1GetDoc211.action',{
			case_no:this.$route.query.case_no,
			party_type:this.$route.query.party_type
		}).then(res=>{
			this.baseform={...this.baseform,...res.data}
		})
	}
}
</script>

<style>
</style>